//
//  CYMeHttpTool.h
//  CreditAddressBook
//
//  Created by Lee on 15/4/30.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CYHttpTool.h"
#import "CYUser.h"
@class CYCompanyUserModel;

@interface CYMeHttpTool : NSObject

+ (void)updateUserWithParams:(NSDictionary *)params success:(HttpRequestSuccess)success failure:(HttpRequestFailure)failure;

+ (void)userWithParams:(NSDictionary *)params success:(void (^)(CYUser *user))success failure:(HttpRequestFailure)failure;

/**
 *  贷款列表
 *
 *  @param params
 *  @param success
 *  @param failure
 */
+ (void)loanListWithParams:(NSDictionary *)params success:(void (^)(NSArray *arr))success failure:(HttpRequestFailure)failure;

/**
 *  分期还款列表
 *
 *  @param params
 *  @param success
 *  @param failure
 */
+ (void)payBackListWithParams:(NSDictionary *)params success:(void (^)(NSArray *arr))success failure:(HttpRequestFailure)failure;

/**
 *  分期还款记录还款详情
 *
 *  @param params
 *  @param success
 *  @param failure
 */
+ (void)payBackDetailListWithParams:(NSDictionary *)params success:(void (^)(NSArray *arr))success failure:(HttpRequestFailure)failure;

/**
 *  更新用户审核状态
 *
 *  @param params
 *  @param success
 *  @param failure
 */
+ (void)getUserStatusForSuccess:(void (^)(CYUser *user))success failure:(HttpRequestFailure2)failure;
/**
 *  更新企业用户审核状态
 *
 *  @param success
 *  @param failure
 */
+ (void)getCompanyUserStatusForSuccess:(void (^)(CYCompanyUserModel *user))success failure:(HttpRequestFailure1)failure;

/**
 *  修改密码
 *
 *  @param params  <#params description#>
 *  @param success <#success description#>
 *  @param failure <#failure description#>
 */
+ (void)modifyPasswordWithParams:(NSDictionary *)params success:(void (^)(NSString *message))success failure:(HttpRequestFailure)failure;

/**
 *  获取提现额度
 *
 *  @param params  <#params description#>
 *  @param success <#success description#>
 *  @param failure <#failure description#>
 */
+ (void)getCreditCeilingWithParams:(NSDictionary *)params success:(void (^)(NSString *message))success failure:(HttpRequestFailure)failure;

/**
 *  从相册中选取图片
 *
 *  @param delegate   <#delegate description#>
 *  @param completion <#completion description#>
 */
+ (void)imageFromPhotoLibraryWithController:(UIViewController *)con Delegate:(id<UIImagePickerControllerDelegate, UINavigationControllerDelegate>)delegate completion:(void (^)(void))completion;

/**
 *  相机拍照选取图片
 *
 *  @param delegate
 *  @param completion 
 */
+ (void)imageFromCameraWithController:(UIViewController *)con Delegate:(id<UIImagePickerControllerDelegate, UINavigationControllerDelegate>)delegate completion:(void (^)(void))completion;

/**
   
 */
+ (void)ShopwithaddressWithParams:(NSDictionary *)params success:(void (^)(NSString *message))success failure:(HttpRequestFailure)failure;
@end
